package com.liqing.movecomment.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * (MoveTag)实体类
 *
 * @author makejava
 * @since 2023-05-08 02:01:51
 */
public class MoveTag implements Serializable {
    private static final long serialVersionUID = 414157077695351433L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 电影id
     */
    private Integer moveId;
    /**
     * 标签id
     */
    private Integer tagId;

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public Integer getId() {
        return this.id;
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="delombok">
    /**
     * 电影id
     */
    @SuppressWarnings("all")
    public Integer getMoveId() {
        return this.moveId;
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="delombok">
    /**
     * 标签id
     */
    @SuppressWarnings("all")
    public Integer getTagId() {
        return this.tagId;
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public void setId(final Integer id) {
        this.id = id;
    }
    //</editor-fold>

    /**
     * 电影id
     */
    @SuppressWarnings("all")
    public void setMoveId(final Integer moveId) {
        this.moveId = moveId;
    }

    //<editor-fold defaultstate="collapsed" desc="delombok">
    /**
     * 标签id
     */
    @SuppressWarnings("all")
    public void setTagId(final Integer tagId) {
        this.tagId = tagId;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof MoveTag)) return false;
        final MoveTag other = (MoveTag) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
        final Object this$moveId = this.getMoveId();
        final Object other$moveId = other.getMoveId();
        if (this$moveId == null ? other$moveId != null : !this$moveId.equals(other$moveId)) return false;
        final Object this$tagId = this.getTagId();
        final Object other$tagId = other.getTagId();
        if (this$tagId == null ? other$tagId != null : !this$tagId.equals(other$tagId)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof MoveTag;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * PRIME + ($id == null ? 43 : $id.hashCode());
        final Object $moveId = this.getMoveId();
        result = result * PRIME + ($moveId == null ? 43 : $moveId.hashCode());
        final Object $tagId = this.getTagId();
        result = result * PRIME + ($tagId == null ? 43 : $tagId.hashCode());
        return result;
    }

    @Override
    @SuppressWarnings("all")
    public String toString() {
        return "MoveTag(id=" + this.getId() + ", moveId=" + this.getMoveId() + ", tagId=" + this.getTagId() + ")";
    }

    @SuppressWarnings("all")
    public MoveTag(final Integer id, final Integer moveId, final Integer tagId) {
        this.id = id;
        this.moveId = moveId;
        this.tagId = tagId;
    }

    @SuppressWarnings("all")
    public MoveTag() {
    }
}
    //</editor-fold>
